class player{

    constructor({audioDom,musicUrl,lastPlayTime,musicId}){
        //audioDom为audio的D节点
        //musicUrl为音乐地址
        //上次播放时间
        this._audioDom=audioDom;
        this._musicUrl = musicUrl;
        this._lastPlayTime = lastPlayTime;
        this._musicId = musicId;
        this._isPlay=false;
    }
    get audioDom(){
        return this._audioDom;
    }
    getAudioDom() {
        return this._audioDom;
    }

    getMusicUrl() {
        return this._musicUrl;
    }

    getLastPlayTime() {
        return this._lastPlayTime;
    }

    getMusicId() {
        return this._musicId;
    }
    getIsPlay() {
        return this._isPlay;
    }

    setMusicUrl(value) {
        this._musicUrl = value;
    }

    setLastPlayTime(value) {
        this._lastPlayTime = value;
    }

    setMusicId(value) {
        this._musicId = value;
    }

    setIsPlay(value) {
        this._isPlay = value;
    }
}
let instance=new player({
    audioDom:document.getElementById('audioPlayer')
});
export default instance;